home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #5 / Amiga Plus CD - 1996 - No. 5.iso / pd / grafik / jacosub / documentation / jscripts.doc < prev    next >
Encoding:
Text File  |  1996-06-02  |  61.8 KB  |  1,212 lines

  1. JACOsub 2.5r SCRIPT FILE FORMAT SPECIFICATION
  2. =============================================
  3.  
  4. Here is the complete JACOsub script file format specification.
  5. It's not complicated (unless you want it to be) and quite flexible.
  6. Check out the sample script (demo.js) that came with this software;
  7. it demonstrates many of the things you can do with a script.
  8.  
  9. The accompanying file QuickRef.doc is a summary of this document, providing
  10. brief descriptions of the commands, escape codes, and directives that you
  11. can put into a script.
  12.  
  13. CONTENTS OF THIS DOCUMENT
  14. =========================
  15.  
  16.  1.  Basic format conventions
  17.  2.  Compiler commands
  18.  3.  Timed lines
  19.  4.  Directives (for controlling timed lines)
  20.  5.  Sample lines
  21.  6.  Credits
  22.  
  23. Most of the information in this document is demonstrated by the timed
  24. script demo.js, which is included in the JACOsub distribution archive.
  25.  
  26.  
  27. 1.  BASIC FORMAT CONVENTIONS
  28. ============================
  29.  
  30. 1.  Space characters (white space) may consist of spaces or tabs.  Any line
  31.     in a script file may contain any amount of white space in front of,
  32.     behind, or in between parameters or words.
  33.  
  34. 2.  A line cannot be more than 511 characters in length (but you can
  35.     concatenate several lines; see "escape codes" below).
  36.  
  37. 3.  Lines in the file may be blank lines, compiler commands, or timed
  38.     lines for the script.  All these are explained below.
  39.  
  40. 4.  Blank lines or lines containing white space only are ignored.
  41.  
  42.  
  43. 2.  COMPILER COMMANDS
  44. =====================
  45.  
  46. Any line where # is the first non-space character is treated as a compiler
  47. command.  The command is indicated by the next character or word (upper or
  48. lowercase) following the #.  Some commands have arguments, which are
  49. assumed to begin with the next non-whitespace characters following the
  50. command.  Anything shown here in square brackets [] are optional.
  51. The commands are:
  52.  
  53.    #       (followed by a space) Comment.  The line will be ignored.
  54.  
  55.            Example:
  56.            # This is a comment.
  57.  
  58.    #C[LOCKPAUSE] <time>
  59.            While a script is running, this command forces the clock to
  60.            pause the clock at the time specified by <time>.  Pressing a key
  61.            will resume play.  <time> is an offset from the beginning of the
  62.            script in the form H:MM:SS.FF (hours:minutes:seconds.units).
  63.            The beginning time of a script is usually 0:00:00.00 unless the
  64.            script was included with an offset using the #I command.
  65.  
  66.            This command is useful for titling multiple laserdisc sides in
  67.            a single script.  Be warned:  There will be no indication on the
  68.            screen telling you that the script is paused!  You have to keep
  69.            track of your pauses yourself.
  70.  
  71.    #D[IRECTIVE][n] <directive string> [optional_name]
  72.            Change some directive defaults (see the Directives section
  73.            below), for example:
  74.  
  75.            #D CF10F2  small_red_text
  76.            #directive3 hr50vmf2
  77.            #d9JLJBC
  78.  
  79.            This command affects only those lines following it.  Scripts may
  80.            contain as many #D commands as you like.
  81.  
  82.            There are 31 default directives available, D0 through D30.
  83.            Specifying #D is the same as #D0 -- this sets the general
  84.            overall default directive when a title line contains no
  85.            directive or when just the D directive is present.  The
  86.            directives D1 - D30 may be set for situations when you need a
  87.            shorthand way to represent a long complicated directive string
  88.            in many places in your script.  Directives D0-D30 are initially
  89.            all identical, according to your DIRECTIVE config setting.
  90.  
  91.            Instead of a long cryptic directive in your timed lines, you
  92.            may use the short codes you define, like D, D1, D2, etc.
  93.            Alterately, you may also assign sensible names to your directive
  94.            definitions and use these names instead of the codes D3, D4,
  95.            etc.  If you use a directive name instead of the actual
  96.            directive code in your title, you must enclose the name in
  97.            square brackets [].  The name definition in the #D command must
  98.            NOT contain brackets.  The name will be truncated after 20
  99.            characters, and uppercase or lowercase doesn't matter.
  100.  
  101.    #F[ONT] <n> <fontname.font> <size> [CLEAN or QUICK&DIRTY] [Y/X]
  102.            This command sets font <n> to <fontname.font> which is <size>
  103.            pixels high.  Font settings affect the entire script.  The <n>
  104.            argument may range from 0 to 9 if the software has been
  105.            registered, otherwise <n> may range from 0 to 3.  #F commands
  106.            should be specified before any timed lines in the script.
  107.  
  108.            CLEAN or QUICK&DIRTY indicate the rendering mode for the font.
  109.            Normally, you should NEVER need to set the rendering mode!  The
  110.            program is smart enough to determine the best mode.  Mono-color
  111.            fonts will always be QUICK&DIRTY, and color fonts will be CLEAN
  112.            only if the characters are designed to overlap.
  113.  
  114.            The Y/X argument modifies the default 1/1 aspect ratio for the
  115.            font's height vs. width.  It must be specified as two integers
  116.            separated by a slash with no spaces, as in 40/33.  This argument
  117.            works only in AmigaDOS versions 2.0 or higher.
  118.  
  119.            NOTE:  Due to the Amiga's internal font management, the Y/X
  120.            parameter will affect only those fonts having names and/or sizes
  121.            different from those fonts already loaded in memory.  For
  122.            example, the 36-pixel JACOsub font is loaded as font 0 when the
  123.            program starts up, and its aspect ratio will be whatever it had
  124.            when it loaded (see the FONT setting in the jacosub.cfg file).
  125.            Any attempt to assign "jacosub.font 36" a different aspect will
  126.            have no effect.  You can get around this by setting the program
  127.            configuration so that font 0 is something like Topaz 9,
  128.            rebooting, and then using your script to load jacosub.font 36
  129.            with the desired aspect ratio.
  130.  
  131.            Example: #F 2 Diamond.font 20
  132.  
  133.    #H[RES] <resolution mode>
  134.            This sets the horizontal display resolution mode (HIRES or
  135.            SUPERHIRES) that is expected to be used with the script.  This
  136.            should be set in the program configuration; set it in the script
  137.            only if the script is designed specifically for a particular
  138.            resolution mode.  SUPERHIRES will be ignored on computers
  139.            incapable of it.  This command will be ignored if it occurs
  140.            after the first timed line, or inside #Included scripts.
  141.    
  142.    #I[NCLUDE] <time> <filename>
  143.            Include another script file <filename> into the current script,
  144.            offsetting the second script's start time by <time>.  <time> is
  145.            always FORWARD offset.
  146.  
  147.            This command is useful, for example, if you are subtitling a
  148.            series of TV shows having subtitles for credits and ending song
  149.            lyrics.  Rather than importing and/or re-timing the same
  150.            sequences over and over again for each episode, you need only
  151.            time the song lyrics once and the credits once, with the times
  152.            starting at zero, and save these two scripts as separate files.
  153.            When your "main" script includes these other scripts, they will
  154.            be incorporated properly into the main script to start at the
  155.            proper time (which is <time> added to the first time event in
  156.            the included script), and any overlapping time ranges will be
  157.            interwoven properly.
  158.  
  159.            <time> is specified in the form H:MM:SS.FF, where H is an hours
  160.            digit, M is a minutes digit, S is a seconds digit, and F is a
  161.            fractional-second digit.  The units of F are determined by the
  162.            #T command (below), and default to 30 units/second if the #T
  163.            command was omitted (that is, the FF digits are SMPTE units
  164.            ranging from 00 to 29).  The included script may in turn contain
  165.            its own, possibly different, #T command, and also its own
  166.            #I commands.  <time> always offsets the "includee" relative to
  167.            the beginning of the "includer," taking into account the
  168.            "includer's" own offset if the "includer" was itself included by
  169.            some other script.
  170.  
  171.            <filename> may be any valid path + file name.  <filename> can
  172.            specify a complete path; if no path is specified then JACOsub
  173.            will look in the default scripts directory, which you can set in
  174.            the General Config menu.  If you omit the extension in
  175.            <filename>, then the program will include the script with the
  176.            most recent time-stamp, among the extensions .js, .tts, .pjs, or
  177.            .tim (.jsc, .pan, or .sub files won't be considered).  The file
  178.            name must not contain any spaces.
  179.  
  180.            Any occurrences of #F, #P, #Q, and #R in an included script will
  181.            be ignored.  These commands work only in the primary script, and
  182.            they affect all included scripts.  The effects of #D, #S, and #T
  183.            commands are passed down into included scripts, but these
  184.            commands inside an included script affect only that script and
  185.            others IT might include; they have no effect on the higher-up
  186.            "calling" scripts.
  187.  
  188.            Example: #I 0:21:44.16 scripts:kor/kor-credits.js
  189.  
  190.    #P[ALETTE] <color> <r> <g> <b> [palette]
  191.            This sets the red, green, and blue intensities for color
  192.            register <color>, to <r>, <g>, and <b>, respectively.  This
  193.            command may be specified anywhere in the file, but the setting
  194.            will be used for the entire script.  Use intensities of 14 or 15
  195.            with caution, as these are stronger than normal video signals,
  196.            and can result in color bleeding when using in your genlocked
  197.            video signal.  Do not redefine color 2; JACOsub expects it to
  198.            remain black.
  199.  
  200.            The optional [palette] parameter defaults to 0, and indicates
  201.            the palette number in which to set the color.  JACOsub has 10
  202.            palettes available.  All 10 palettes are initialized to initial
  203.            values set in the Playing / video Config menu.  Palettes 1 - 9
  204.            may be used to reset temporarily certain colors for a particular
  205.            display, using the CP directive.  If JACOsub is using a
  206.            2-bitplane display, for example, you are restricted to 4 colors
  207.            at any one time, but using multiple palettes allows you to
  208.            redefine them on the fly.
  209.  
  210.            Examples:
  211.            #P1 14 14 6    # set color 1 to yellow, in default palette 0
  212.            #P1 d d 6      # same as above, using hexadecimal RGB values
  213.            #p 3 0 13 0 1  # set color 3 to green, in palette 1
  214.  
  215.    #Q[UANTIZE] [n]
  216.            This command has the effect of eliminating timing gaps between
  217.            subtitles of less than [n] time units, as specified by the #T
  218.            command.  Default is #Q0.  Example:  With #t30 and #q2
  219.            specified, any time event less than 2/30 seconds earlier than
  220.            another time event will be rounded up to the later event.  This
  221.            is of questionable usefulness.  If this command occurs before a
  222.            #T command, then 30 units per second is assumed.  Subsequent #Q
  223.            commands replace earlier ones.  Only the last #Q command in a
  224.            script has any effect.
  225.  
  226.    #R[AMP] <seconds.units>
  227.            If you play a pre-timed script, and discover a time drift, then
  228.            use this command.  The parameter <seconds.units> is the amount
  229.            of drift to correct over the entire script.  Script timings will
  230.            be adjusted appropriately according to this value.  A positive
  231.            value will lengthen the total script running time, and a
  232.            negative value will shorten the total script running time.  The
  233.            default value is #R0.  The number after the decimal point is NOT
  234.            a fractional second; it is the number of time units specified by
  235.            #T.  THIS COMMAND MUST NOT OCCUR BEFORE A #T COMMAND.  Examples:
  236.  
  237.            #R-3.60  will shorten the script running time 3 seconds plus 60
  238.                     time units.
  239.            #R .92   will lengthen the script running time 92 time units.
  240.  
  241.            IMPORTANT:  Your genlock affects the computer's internal clock.
  242.                        If you find that you have to ramp a 30-minute script
  243.                        more than 10 seconds, then you have a bad problem
  244.                        with your genlock.  DO NOT TRY TO "FIX" THE PROBLEM
  245.                        WITH A BIGGER RAMP TIME!  Doing so will result in
  246.                        math overflows, causing sudden jumps in timing.
  247.  
  248.    #S[HIFT] <[[hours:]minutes:]seconds.units>
  249.            The parameter <seconds.units> is the amount to shift each time
  250.            event in the script.  A positive value will delay each time, and
  251.            a negative value will advance each time.  The default value is
  252.            #S0.  The number after the decimal point is NOT a fractional
  253.            second; it is the number of time units specified by #T.  THIS
  254.            COMMAND MUST NOT OCCUR BEFORE A #T COMMAND.
  255.  
  256.            The first occurrence of #S in a script determines a global
  257.            amount of shift, even if the first #S appears AFTER some timed
  258.            lines.  Subsequent occurrences affect only those lines following
  259.            the #S.  You must take care that your #S commands do not cause
  260.            any times to be less than zero.  The Amiga uses unsigned
  261.            integers (always positive) for its internal representation of
  262.            times, meaning that a time "less than" zero is actually a very
  263.            large number!
  264.  
  265.            Example:  #S -0.20 will cause ALL events to occur 20 time units
  266.            sooner than usual, if this is the FIRST #S.  Otherwise, all
  267.            events SUBSEQUENT to this command will be shifted so that they
  268.            occur 20 units sooner.
  269.  
  270.    #T[IMERES] <n>
  271.            Time resolution; sets time units to <n> per second.  The default
  272.            is SMPTE units of 30 counts/second, as in #T30.  If your script
  273.            is in units 1/100 second units or PAL units, you must say so
  274.            with the appropriate command, before the subtitle text begins.
  275.            The #R or #S commands cannot precede a #T command.
  276.  
  277.            Examples:  #t100
  278.                       #TIMERES 25
  279.  
  280.  
  281. 3.  TIMED LINES
  282. ===============
  283.  
  284. Timed lines for the script may occur in any order.  They look similar to
  285. this:
  286.  
  287.    H:MM:SS.FF H:MM:SS.FF directive {comment} text {comment} more text...
  288.  
  289. For example:
  290.  
  291.    0:30:57.22 0:30:59:46 vm {opening credit} A Film By Akira Kurosawa
  292.  
  293. Here's what all those pieces are:
  294.  
  295. Start time and stop time
  296. ------------------------
  297. The first field is the time when the subtitle is to appear on the screen.
  298. The normal default is SMPTE format (that is, FF can range from 00 to 29).
  299. Use the #T command (described above) to define the units.  IMPORTANT: The
  300. FF digits represent time units, NOT fractions of a second.  There is a
  301. difference!  For example, if you use #T10 to specify 1/10 second time
  302. units, then a time such as 0:00:00.60 would be illegal (and result in an
  303. error) because it specifies 60 time units!  0:00:00.6 or 0:00:00.06 or
  304. even 0:00:00.00006 would be correct for this case -- 6 UNITS are specified,
  305. not 6 tenths of a second.
  306.  
  307. The second field is the time when the title is to disappear.
  308.  
  309. If you prefer, you do not have to use the H:MM:SS.FF format at all.
  310. Instead, you can substitute a @ symbol followed by a single integer to
  311. represent total time units.  For example, if #T30 is used to specify 1/30
  312. second units, then the 0:05:10.22 is the same as @9322.  This format is
  313. useful for representing times as video frame counts.  Many laserdisc
  314. players display times in this fashion.
  315.  
  316. Directive string
  317. ----------------
  318. The next field is the directive.  It is optional.  If you leave it out, the
  319. program will default to standard subtitling form (all text centered at the
  320. bottom of the screen or depending on how you have your global default
  321. directive set in your configuration).  The title text MUST begin with a
  322. non-alphabet character {such as a comment} if you omit the directive.
  323. Directives are explained fully in the DIRECTIVES section below.  The first
  324. non-whitespace character following  the directive is assumed to be the
  325. beginning of the subtitle text.
  326.  
  327. Inline comments
  328. ---------------
  329. The {comment} is considered a part of the subtitle text, but it is ignored
  330. by the software.  Use it for character names or keywords.  A comment must
  331. be enclosed in braces.  Comments may appear anywhere within the text of a
  332. subtitle.  If you really want to to display a left brace, precede it with a
  333. backslash like so: \{.  Right braces will be interpreted as a literal
  334. character or close of a comment, whichever seems appropriate.  If a
  335. whitespace character immediately follows a comment closing brace, then that
  336. first whitespace character will be ignored.  Any other kind of following
  337. character will be considered part of the subtitle text, and used.  Comments
  338. in the text are especially useful when translating foreign films -- we use
  339. them to list possible translations of phrases we are not yet sure about.
  340.  
  341. Title text
  342. ----------
  343. In the example above, the "text" and "more text" fields are what get
  344. displayed.  There are several special codes that you can put inside the
  345. text (CASE IS IMPORTANT HERE ONLY):
  346.  
  347. Special character codes:
  348.  
  349.    \    Concatenate.  If the LAST character in a line is a backslash, then
  350.         JACOsub will concatenate the text on the next line to the text
  351.         in the current line.  Leading and trailing whitespace will be
  352.         stripped from the concatenated text, so you can indent it if you
  353.         wish.
  354.  
  355.    \n   Newline.  This is like a carriage return.  A line containing this
  356.         code will be split at the \n.  Each of these new fragments will
  357.         then be wordwrapped separately unless you turn wordwrapping off
  358.         (see the W directive below).  \n is useful for general formatting.
  359.         Multiple \n codes may be concatenated to create blank lines.
  360.         Example:  Hello!\n\nHow are you?{blank line separating the two}
  361.  
  362.    \{   Display a left brace.  Left braces are normally used to indicate
  363.         the beginning of a comment.
  364.  
  365.    \~   Display a tilde.  Tildes are normally used to create "hard" spaces
  366.         (see below).
  367.  
  368.    \\   Display a backslash.  Backslashes are normally used to denote these
  369.         special codes.
  370.  
  371. Insertions:
  372.  
  373.    \D   Insert current date into the title.  The date will be of the format
  374.         DD MMM YYYY, as in 2 Apr 1996.
  375.  
  376.    \T   Insert current time into the title.  The time will appear as HH:MM
  377.         (24-hour time).
  378.  
  379. Font codes:
  380.  
  381.    \N   Normal.  All text appearing after this code will be displayed in
  382.         "normal" style.  This is typically the default, unless you have the
  383.         style (S) directive set to something other than normal.  Note that
  384.         this code is an uppercase \N -- a lowercase \n is a newline code.
  385.  
  386.    \I   Italics.  Display all text appearing after this code in italics.
  387.         Example:  \IHello!\N\nHow are you?{Hello is in italics}
  388.  
  389.    \B   Boldface.  This one isn't particularly useful, but go ahead if you
  390.         feel like it.  Text characters will be slightly fatter.
  391.  
  392.    \U   Underline.  This is virtually useless for large color text.
  393.  
  394.    \Cn  Color n.  The text following this code will be displayed using face
  395.         color n.  n is a hexadecimal digit; it may take the values 0-9 or
  396.         A-F (or a-f).  Typically, when using the font supplied with this
  397.         software on a 2-bitplane display, only colors 3 and 1 are useful.
  398.         See the CF directive below for some caveats about colors.
  399.  
  400.    \Fn  Font n.  The text following this code will be displayed using font
  401.         number n.  n may range from 0 to 9 (or 0 to 3 if the program is
  402.         not registered).  Normally you would use the F directive to set the
  403.         default font for a line; use this escape code to override it.
  404.  
  405. THE FONT CODES ABOVE AFFECT ONLY ONE TIMING LINE; their effects do not
  406. carry over into other lines.  These codes override any directives.  The \I,
  407. \B, and \U codes are mutually exclusive:  You can have bold text or italic
  408. text, but you cannot create text that is BOTH bold and italic.  See the 
  409. demo script file (demo.js) for good examples on usage.
  410.  
  411. Leading or trailing space in subtitle text will be ignored.  If you want to
  412. encode a true space on the ends of some text, use a tilde (~).  It will be
  413. displayed as a space.  To actually display a tilde, precede it with a
  414. backslash: \~.  Tildes may also be used to create "hard" spaces; they will
  415. be displayed as spaces but text will not be wordwrapped on these spaces.
  416.  
  417. White space between line arguments may consist of any amount of spaces or
  418. tabs.  Each tab character inside the subtitle text will be converted to a
  419. space character.
  420.  
  421.  
  422. 4.  DIRECTIVES
  423. ==============
  424.  
  425. Directive strings were briefly described above, but there are so many that
  426. they deserve to be allocated a whole section of this document.
  427.  
  428. A directive is a series of character codes strung together.  A directive
  429. determines a subtitle's position, font, style, color, and so forth.  Each
  430. character code begins with an alphabet character followed by arguments made
  431. up of other alphabet characters and numbers.  Directives may contain any of
  432. the following codes, in any order.  The directives may be uppercase or
  433. lowercase.  Like the text codes above, directives only affect a SINGLE
  434. timing line; their effects do not carry over into other lines.  Any
  435. parameters shown here in square brackets [] are optional.
  436.  
  437. Vertical positioning
  438. --------------------
  439.  
  440.     VA     Continue this line directly Above the previous one.  This is
  441.            the opposite behavior of VU below.  This is a useful directive
  442.            for those cases where you want a new line to appear above the
  443.            previous line's position, even if both lines do not share the
  444.            same time range.  See VU below for more details.
  445.  
  446.     VB[n]  Bottom.  Position last line at the bottom (default).  The offset
  447.            from the bottom of screen n is optional  - it says how many
  448.            raster lines to offset from the physical bottom-of-viewport.  VB
  449.            by itself is the same as VB16 (in the original default for this
  450.            software).  The default value of n can be changed using #D
  451.            command or in the General Configuration settings.
  452.  
  453.     VHn    Line height (i.e. spacing), where n is the percentage of the
  454.            font height to use for line spacing.  Default is 100 (single-
  455.            spaced).  Using 200 would result in double-spaced lines.  n may
  456.            range from -32768 to 32767, although the useful range is
  457.            probably more like 50 to 500.
  458.  
  459.     VL[n]  line n. Position subtitle starting at text line n (the height
  460.            of a line depends on the font you use).  n=0 is the top line.
  461.            If n is negative or omitted, the line will appear in the same
  462.            vertical position as the preceding timed line.
  463.  
  464.     VM[n]  Middle.  Text will be centered vertically in the area defined by
  465.            the VTn and VBn directives.  The optional parameter [n] is a
  466.            positive or negative integer that will cause the centered block
  467.            to be shifted up or down [n] lines (line height determined by
  468.            the VH setting).
  469.  
  470.     VPn    Pixel n. Position subtitle so that the font baseline of the
  471.            first line of text is n pixels from the top of the viewport.
  472.            You need to know your font's baseline position for this
  473.            directive to be of any use.  The mouse-positioning operation in
  474.            the script editor creates directives like this.
  475.  
  476.     VS[n]  Scroll at speed n (default -2).  n<0 is number of frames to wait
  477.            per raster line scrolled.  n>0 is number of raster lines to
  478.            scroll per frame.  n may range from -6 to 4, with the values -1,
  479.            0, and 1 all treated the same.  Text will scroll in from the
  480.            bottom of the display and scroll off the top.  If the start time
  481.            of scrolled text is the same as the end time of the previous
  482.            view, the previous view will be scrolled off as the new text is
  483.            scrolled in.  The new text to be scrolled in will begin at an
  484.            offset below the bottom edge of the screen, controlled by the VT
  485.            offset quantity.
  486.  
  487.            IMPORTANT CONSIDERATIONS:
  488.            1.  Overlapping time ranges are ignored, except for
  489.                concatenations caused by VU directives.  Use the VU
  490.                directive to concatenate title paragraphs, otherwise use the
  491.                end-of-line concatenation escape character (\).
  492.            2.  Be sure you give the titles sufficient duration for the
  493.                scrolling to complete -- if the duration is too short,
  494.                scrolling will complete anyway, delaying anything scheduled
  495.                to happen immediately afterward.
  496.            3.  The only really useful scrolling speeds are -2 or less.
  497.                Speeds of 2 or higher are almost too fast to read anything,
  498.                and the maximum speed of 4 is usually too fast for the
  499.                program to keep up with.  Speeds -1, 0, and 1 (all treated
  500.                the same) result in strange distortions due to the fact that
  501.                the video is interlaced.  This fact, combined with an odd-
  502.                numbered scroll at every video refresh, causes only every
  503.                other line in the bitmap to be visible during the scroll.
  504.            4.  Regardless of whether the speed is even or odd, positive
  505.                speeds that do not divide evenly into your screen height
  506.                will be reduced to the next lower speed that does divide
  507.                evenly.
  508.            5.  The following directive prefixes will be ignored:  E, CS,
  509.                FC, FD, FO, FS, FQ, I, and R.
  510.            6.  Scrolling may not be smooth for large fonts or color fonts,
  511.                or it may be smooth but the text may not be generated
  512.                rapidly enough to keep up with the scroll.  Either way, the
  513.                program will warn you if you try to scroll a color font.  It
  514.                works best with small-to-medium sized mono-color fonts.
  515.            7.  Under AmigaDOS 1.3 and below, fonts with slightly
  516.                overlapping bitmaps may not be spaced properly.  The program
  517.                will warn you of this if you try it under 1.3.
  518.            8.  The VU directive may be used after VS to append more text.
  519.                You should use VU to concatenate paragraphs of scrolling
  520.                titles.  This is more memory-efficient than using the \
  521.                concatenation code at the end of each line.
  522.            9.  You can use embedded codes to change text style and color,
  523.                but be careful changing fonts in the middle of a line.
  524.                Changing fonts works best if the new font is on a separate
  525.                line all its own, or if the new font is the same size as
  526.                other fonts on the same line.
  527.           10.  This directive uses a significant amount of display memory;
  528.                equivalent to slightly more than two additional display
  529.                buffers.  Insufficient RAM will cause scrolled titles to be
  530.                skipped.  Sometimes the scrolling bitmap will fail to
  531.                allocate from fragmentation in the available display memory.
  532.                Shutting down the program and restarting it might alleviate
  533.                this fragmentation enough to facilitate scrolling.
  534.  
  535.     VT[n]  Top.  Position the title with the first line at the top.  The
  536.            offset n is optional - as with VB, VT by itself is the same as
  537.            VT16 in the original distribution of this software.
  538.  
  539.     VU     Continue this line directly Underneath the previous one.  This
  540.            is useful if you want a line with different directives grouped
  541.            in the same vertical-positioning block as the previous line.
  542.            It's like the line-concatenation escape code (\) only it doesn't
  543.            continue the previous line where it left off, but instead starts
  544.            a new line below it, positioning the previous line higher, if
  545.            necessary, to make room for the new line.
  546.  
  547.            You can also use the VU directive to create interesting effects
  548.            when a line with the VU directive does not share the same time
  549.            range as the previous line.  For example, suppose you had a
  550.            single line that used the VM directive.  Normally it would be
  551.            perfectly centered vertically on the screen.  However, if a VU
  552.            line follows it, both are positioned as if they were a single
  553.            block of lines to be centered on the screen together; i.e. the
  554.            VM line will appear slightly above center and the VU line will
  555.            appear slightly below center, regardless of WHEN they are
  556.            individually displayed.  Had VB been used instead of VM, the
  557.            first line would have appeared raised one text line higher than
  558.            bottom, just enough to make room for the second line.  VA has
  559.            the same effect as VU if the lines are reverse-ordered in the
  560.            script.
  561.  
  562. Horizontal positioning
  563. ----------------------
  564.  
  565.   Margins:
  566.  
  567.     HLn    Left margin.  Set left margin at a position that is n% of the
  568.            the screen width.  Default is HL1 (1% from left edge).  Minimum
  569.            value is -128 (way past the left edge of the display area).
  570.  
  571.     HRn    Right margin.  Set the right margin at a position that is n% of
  572.            the screen width.  Default is HL99 (1% from right edge).  The
  573.            right margin MUST be greater than the left margin.  Maximum
  574.            value is 127, although anything greater than 100 is useless.
  575.  
  576.   Text justification:
  577.  
  578.     JC     Center.  Text is centered within H constraints (normal default).
  579.  
  580.     JF[:p] Full.  This aligns the left and right edges of text flush with
  581.            the ends of the widest wordwrapped line in the text block.  If
  582.            you want the justified text to span the full margin width, set
  583.            wordwrapping to W2 (greedy) instead of W1 (smart, the default).
  584.            The :p is a position parameter.  It may be :C (default), :L, :R,
  585.            or :U, for Center, Left, Right, and Unconditional, respectively.
  586.            :C, :L, and :R control the position of non-wordwrapped lines
  587.            such as single short lines or the last line in a wordwrapped
  588.            block -- these will not not be stretched to fit the block width.
  589.  
  590.            (Remember, \n codes delimit wordwrapped blocks; a title split
  591.            by \n codes will wrap and justify each section as if they are
  592.            completely separate titles.  If you want to justify a title
  593.            properly, you should remove all \n codes except for where the
  594.            wrapping and justifying should end.)
  595.  
  596.            The :U parameter means "unconditional."  JF:U is the same as JU.
  597.            JF:U causes ALL lines in the block, wordwrapped or not,
  598.            including the last line, to be stretched to fit exactly within
  599.            the margins.  JF:U is useful for titling credits like this:
  600.  
  601.                   Clint Eastwood . . . . . . . Dirty Harry
  602.  
  603.            All the spaces will then be adjusted so that the line fits
  604.            exactly inside the margins, and a list of these credits will
  605.            have flush left and right edges.  You will need to experiment
  606.            with the number of dots and spaces to get it all to look good.
  607.            You can also try elminating the spaces between the dots, or
  608.            substituting dashes, for somewhat different effects.
  609.  
  610.            JF[:p] commandeers one character in each proportional font for
  611.            use as an adjustable space; the decimal character code used will
  612.            be one of: 128, 31, or 127, whichever is available (hex codes
  613.            80, 1F, or 7F, respectively).  The JF directive has no effect on
  614.            fonts lacking all of these character codes.  Mono-spaced fonts
  615.            are likewise unaffected.
  616.  
  617.     JL     Left.  Align left edge of text at the HLn margin position.
  618.  
  619.     JR     Right.  Align the right edge of text at the HRn margin position.
  620.  
  621.     JU     Obsolote directive; identical to JF:U
  622.  
  623.   Block justification:
  624.  
  625.     JBC    Justify block center.  Because of wordwrapping, the width of a
  626.            text block will never occupy the full width specified in your
  627.            margin settings.  This directive positions the imaginary
  628.            rectangle occupied by the text in the center of your margin
  629.            settings, regardless of the text justification directives.  For
  630.            example, the JL directive by itself might produce the following
  631.            effect (the | character indicates margin boundaries):
  632.  
  633.            | The quick brown fox                      |
  634.            | jumped over the lazy dog.                |
  635.  
  636.            but the JL directive together with JBC will preserve the text
  637.            justification but center the block of text between the margins:
  638.  
  639.            |        The quick brown fox               |
  640.            |        jumped over the lazy dog.         |
  641.  
  642.            AnimEigo video products have their subtitles displayed this way.
  643.  
  644.     JBF    Justify block full (default).  Text will be positioned according
  645.            to whatever text justification directives are in effect, using
  646.            the full width specified by the current margin settings.
  647.  
  648.     JBL    Justify block left.  Position the text block at the left margin.
  649.  
  650.     JBR    Justify block right.  Position the text block so that the right
  651.            edge is at the right margin.
  652.  
  653.   Wordwrapping:
  654.  
  655.     W0     Disable automatic wordwrapping.  This may result in your text
  656.            not fitting within the position constraints defined with H & V.
  657.            There is really NO reason at all why you would want to turn off
  658.            wordwrapping; you can wrap words manually with the \n code
  659.            whether wordwrapping is on or off.  This directive is here just
  660.            for the sake of completeness.
  661.  
  662.     W1     Automatic "smart" wordwrapping (default).  Even if a your text
  663.            contains newline codes, the separate substrings will be word-
  664.            wrapped if necessary.  This wordwrap mode uses a "smart"
  665.            algorithm that attempts to minimize the area of the screen
  666.            occupied by the title.  In this mode, you will never see a line
  667.            wrapped as shown (the | characters indicate margin boudaries):
  668.  
  669.            | The quick brown fox jumped over the lazy |
  670.            |                   dog.                   |
  671.  
  672.            Instead, the W1 alghorithm will attempt to minimize the text
  673.            area without using any extra lines, resulting in:
  674.  
  675.            |           The quick brown fox            |
  676.            |        jumped over the lazy dog.         |
  677.  
  678.            This is easier for the viewer to read.  Same margins, same
  679.            number of lines, but the lines are more equal in length.
  680.  
  681.     W2     Automatic "stupid" (generally known as "greedy") wordwrapping.
  682.            If you are disconcerted by words not completely filling the
  683.            horizontal margin space, and you don't mind having a single word
  684.            hanging by itself on the last line (as in the first W1 example
  685.            above), then use this directive.  This is the standard
  686.            text-editor wordwrap algorithm, which makes no attempt at
  687.            aesthetics.  Why anybody would want to use this is beyond me,
  688.            but here it is.  \n codes behave the same as with W1.
  689.  
  690. Fonts
  691. -----
  692.  
  693.   Font rendering:
  694.  
  695.     Fn     Use font n, where n is a number from 0 to 9 (JACOsub loads
  696.            four fonts, which you can specify in the Config menu.  The usual
  697.            default font is 0, which is what you should use as your
  698.            "primary" font.  Fonts 4-9 are unavailable if the software is
  699.            unregistered.
  700.  
  701.     FQ     Quick&Dirty text.  Text color 3 is always quick.  Other colors
  702.            must normally be rendered one character at a time to avoid
  703.            interference between the shadow and face color, but only when
  704.            the font is designed with overlapping characters.  This
  705.            interference happens because of a fault in the way the Amiga
  706.            renders text.  The FQ directive forces all text on a line to be
  707.            rendered in quick mode as if it were color 3.
  708.  
  709.            You should never need to use the FQ directive.  The program is
  710.            smart enough to determine when a font can be quick&dirty.  For
  711.            example, JACOsub's 32- and 36-pixel fonts will default to clean
  712.            mode because they have overlapping characters, but the 32-pixel
  713.            font will default to Quick&Dirty because its characters do not
  714.            overlap.
  715.  
  716.     FC     Clean rendering.  Only color 3 will be rendered fast, other
  717.            colors will be rendered so that the face color is not disturbed.
  718.            You can use this directive to negate, on a single line, a global
  719.            FQ directive set using the #D command.  Normally this directive
  720.            will never be needed.
  721.  
  722.            The demo script demo.js tricks JACOsub into generating "slow"
  723.            clean text in the foreground display so you can see how it is.
  724.            If you are curious to see how the Amiga messes up color 1 text
  725.            if it's displayed the quick way, run the demo after inserting
  726.            the global command #DFQ at the top of the file demo.js before
  727.            you play the demo.
  728.  
  729.     FD     Default text rendering.  Rendering will be "quick" or "clean"
  730.            depending on how your font was set up in your configuration.
  731.            This directive is useful for overriding a #DFC or #DFQ command.
  732.  
  733.     FBn    Blitter activity.  This overrides the "Use Blitter" program
  734.            configuration setting.  If n=1, the blitter will be used to copy
  735.            text between background video buffers for titles that extend
  736.            over several time events.  If n=0, then time-overlapping text
  737.            will be generated afresh on each video buffer.  Normally, the
  738.            blitter should always be enabled.  However, blitting between
  739.            buffers will also copy any imagery behind the title (like a
  740.            graphic or shaded background), which might not share the same
  741.            time range as the title.  If this happens, then disable the use
  742.            of the blitter for that title with the FB0 directive.
  743.  
  744.     FOn[:a]  Generate an outline around the font, n pixels wide.  Color 2
  745.            (JACOsub's outline color) is used to generate the outline.  This
  746.            directive is useful for transforming a plain mono-color Amiga
  747.            font into a nice titling font, especially when combined with the
  748.            FS (font shadow) directive.  Recommended value for n is 2, which
  749.            produces a nice flicker-free outline.  n must be less than 127.
  750.            The maximum practical value is 3 or 4.  The default value is 0.
  751.  
  752.            The optional :a suffix indicates a color to use for anti-
  753.            aliasing.  This defaults to the anti-alias setting in the
  754.            Playing / video configuration, typically 2 (no antialiasing).
  755.  
  756.            WARNING:  Generating outlines can slow the program down
  757.            considerably!  It is recommended that you use this directive
  758.            only with QUICK&DIRTY font rendering, preferably with mono-color
  759.            fonts.  An antialias color other than 2 will slow it down
  760.            somewhat further.
  761.  
  762.     FSdn   Generate a font shadow, taking into account any existing font
  763.            outline, in direction d, and n pixels deep.  Color 2 (JACOsub's
  764.            shadow color) is used to generate the shadow.  The direction d
  765.            is specified as a compass direction: N, S, E, W, NW, NE, SW, SE.
  766.            Good values to use for the shadow depth n are 2 - 5.  The
  767.            warning about font outlines above applies here also.
  768.  
  769.            Example: FSSE3 produces a shadow similar to the JACOsub 32-
  770.            pixel font, with the shadow extending down and to the right.
  771.  
  772.   Font style (may also be set with \ codes in the title text):
  773.  
  774.     SN     Normal style (typical default).
  775.  
  776.     SI     Italic.
  777.  
  778.     SB     Bold (using the JACOsub font, this doesn't look good with colors
  779.            other than color 3).
  780.  
  781.     SU     Underline (ugly!  Not recommended).
  782.  
  783.   Font color (CFn may also be set with text codes):
  784.  
  785.     CFn    Use color register n for the face color of the font.  JACOsub
  786.            assumes that all color fonts use bitplane 0 (i.e. color 1) for
  787.            the face color, and bitplane 1 (i.e. color 2) for the shadow/
  788.            outline.  THIS IS IMPORTANT!  JACOsub will generate text
  789.            differently depending on the color selected (see FF above).
  790.            The foreground color may also be set using the \Cn code inside
  791.            the text.
  792.  
  793.     CBn    Use color register n for the background color.  The display
  794.            will be cleared to this color prior to building the text.  If
  795.            two lines share the same display, and they have different
  796.            background colors specified, the screen will be cleared using
  797.            the latest NON-ZERO background color that occurs for that
  798.            display.  In other words, non-zero colors override the default
  799.            zero (transparent) background color.
  800.  
  801.     CPn    Use color palette n for this display.  Default value of n is 0,
  802.            which is the primary color palette normally used by JACOsub.
  803.            The values of n may range from 0 to 9, for a total of 10 color
  804.            palettes.  All 10 palettes are initially set to a master palette
  805.            which can be modified in the Playing / video Config menu, and
  806.            they can be modified with the #Palette script command.
  807.  
  808.            Because the palette is loaded immediately following a video
  809.            buffer switch, the new imagery on the display will appear with
  810.            the old palette momentarily.  If this is too noticeable, then
  811.            you should precede your alternate-palette lines with a "dummy"
  812.            short-duration blank screen (containing a hard space) using your
  813.            alternate palette, as in this example:
  814.  
  815.            0:00:12.20 0:00:12.22 cp2 ~{palette 2 on blank screen, .02 sec}
  816.            0:00:12.22 0:00:14.50 cp2 This will appear with the new palette.
  817.  
  818.     CS[L]n[:s[:c]] This causes text to appear inside a shaded rectangle.
  819.            The rectangle will be large enough to contain the text with a
  820.            margin of n pixels on all sides.  The shading is user-defined
  821.            (see the Playing / video Config menu) if s=0, or solid if s=1.
  822.            Color c will be used for the rectangle.  The style (s) and color
  823.            (c) paramters are optional; not setting them uses the defaults,
  824.            normally s=0, c=2 (user-defined, black).
  825.  
  826.            Setting n=0 disables the shading.  We suggest using n=8 or more.
  827.            Without the [L] parameter described below, only ONE shaded
  828.            background rectangle will appear on the screen; that is, JACOsub
  829.            will attempt to create a SINGLE box which contains ALL text that
  830.            uses the CS directive and shares the same display.  If two
  831.            shading directives for the same time range have conflicting
  832.            parameters, one of the directives will be used, but predicting
  833.            WHICH one is impossible.  The normal default setting is CS0:0:2,
  834.            which can be changed using the #D command.
  835.  
  836.            The optional [L] parameter causes each text segment (which might
  837.            be split by wordwrapping) to be shaded in its own rectangle.
  838.            This looks ugly for a block of wordwrapped text, but it is
  839.            useful for shading separate single lines that overlap in time.
  840.  
  841.            Notes:  Setting VB0 will mean that bottom-positioned text is as
  842.            low as it will go, therefore shading cannot appear below it.
  843.            You should set the VB directive so that there is room for the
  844.            shading rectangle to extend below the text.  Also, VB text will
  845.            be repositioned slightly higher when the running clock is
  846.            displayed during play, but shade boxes will NOT be repositioned.
  847.  
  848. Genlock fader control
  849. ---------------------
  850.  
  851.     GBn[Tm] Move the background slider control to n% saturation over a time
  852.            period of m/60 seconds of time.  n may range from 0 to 100.  If
  853.            time specifier is omitted, it defaults to 0 (i.e. instant).
  854.            Zero saturation is a normal transparent background, allowing the
  855.            video signal to show through all areas corresponding to color 0
  856.            on the computer's display.
  857.            Example:  GB63T120 slides the background fader to 63% saturation
  858.            in 2 seconds (120/60 seconds).
  859.  
  860.     GGn[Tm] Move the graphics slider control to n% saturation over a time
  861.            period of m/60 seconds of time.  100% saturation is the normal
  862.            operating mode (full graphics), whereas 0% results in only the
  863.            video signal with no overlaid computer graphics.
  864.  
  865.         >> DO NOT USE GG OR GB IN DEFUALT DIRECTIVES, or the genlock will
  866.            be having control signals sent to it at every time event.
  867.  
  868. IFF graphic files (obsolete, see R directives)
  869. -----------------
  870.     IL     Same as RLB.  Retained for compatibility with previous versions.
  871.     IS     Same as RLG.  Retained for compatibility with previous versions.
  872.  
  873. Special effects
  874. ---------------
  875.  
  876. Basic information and warnings:
  877. 1.  Only one effect can exist per time event.  If two titles share the same
  878.     start time, but have different effects, only one effect will be
  879.     executed for both titles.
  880. 2.  All these effects must be given sufficient time to complete.  Any
  881.     time events that occur while the effect is in progress will be
  882.     postponed until the effect is finished executing.
  883. 3.  With the exception of effects EN or E0, and ES, an effect directive
  884.     will be ignored if the bitmaps for the current view and next view are
  885.     incompatible (having different dimensions or depth).  This is not a
  886.     problem for transitions between two normal video buffers; but the
  887.     effect will be ignored if you try to transition to a graphic screen
  888.     having different dimensions or display mode from the image currently
  889.     displayed.
  890. 3.  In the descriptions below, the "d" parameter controls the direction of
  891.     the effect, if applicable.
  892. 4.  The optional "[s]" parameter controls the speed of the effect, which
  893.     may range from 1 to 64 (default is 8 if omitted).  The speed represents
  894.     raster lines per vertical CRT blank.  If s=0 or s=?, the speed will be
  895.     randomly chosen.
  896. 5.  If you notice "roughness" in the way these effects operate, try
  897.     reducing either the effect speed or the number of colors you use for
  898.     script playback.
  899.  
  900.     EBd[s] Blinds.  New view replaces old view as if Venetian blinds were
  901.            opened.  Direction d may be V or H to specify vertical or
  902.            horizontal blinds.
  903.  
  904.     ED[s]  Dissolve.  New view replaces current view by random memory
  905.            replacement.  There are only three speeds: slow (s=0-9), medium
  906.            (s=10-19), and faster (s>20).  This is probably not the best
  907.            algorithm for a dissolve -- if anybody can write a better one,
  908.            please send it to the author.  It needs to be cleaner and
  909.            faster.  As it is, the only really useful speed is the maximum
  910.            (s>20).  The actual speed will depend on your video buffer
  911.            size (width, height, number of colors).
  912.  
  913.     EEVd[s] Reveal next view as if Eyelids open (d=O) or close (d=C)
  914.            vertically over the current view.  This is actually two
  915.            simultaneous vertical wipes in opposite directions on the top
  916.            and bottom halves of the display.
  917.  
  918.     EEHd[s] This is a horizontal-wipe Eyelid effect.  It vaguely resembles
  919.            the opening or closing of curtains.
  920.  
  921.     EId[s] Reveal next view as an Iris opening (d=O) or closing (d=C) over
  922.            the current view.
  923.  
  924.     EN     Normal transition (default).  New view replaces old.  Also E0.
  925.  
  926.     EPn[:s] Palette fade.  Transform the current title palette to palette n
  927.            in [:s] video fields.  This effect will be ignored if applied to
  928.            a graphic file.  Speed may range from 0 to 255, instead of 1 to
  929.            64, and the default speed is 32.
  930.  
  931.     EP+a[:b[:p]]
  932.     EP-a[:b[:p]]
  933.            Cycle forward (+) or backward (-) colors a through b (default b
  934.            is the maximum color index) with a period of p video fields per
  935.            cycle step (default 2).  This effect terminates at the next time
  936.            event.  [:p] may be as high as 255.
  937.  
  938.     ERd[s] Smoothly Roll the current view off the display while rolling the
  939.            next view in.  The direction d may be U, D, L, R (up, down,
  940.            left, right).  Caveats:
  941.            1.  This effect consumes much memory: the equivalent of two
  942.                additional video buffers.  You may have to reduce your usual
  943.                number of buffers or colors to make this effect work.
  944.            2.  Horizontal rolls (left and right) are not possible under
  945.                AmigaDOS 1.3.  They will be converted to up and down,
  946.                respectively.
  947.  
  948.     ESd[s] Scroll new view up into the display if d=U, or reveal new view
  949.            by scrolling current view down if d=D.  This directive will also
  950.            work if the bitmaps are incompatible, i.e., if either view is an
  951.            graphic view created by the RLG directive.  This is not a
  952.            "smooth" scroll; you may not find it acceptable.
  953.  
  954.     EWd[s] Wipe next view over current view in the given direction d (U=up,
  955.            D=down, L=left, R=right).
  956.  
  957.     E?[s]  Random transition chosen from those above, with random speed if
  958.            [s] is also a question mark (?), or zero.  Ignored for
  959.            incompatible bitmaps when applicable.  The Random effect does
  960.            not include the Palette effects.
  961.  
  962. Argument directives (using the title string as parameter arguments)
  963. -------------------
  964.  
  965.     DO NOT USE THE R DIRECTIVES IN A #D DIRECTIVE DEFINITION.
  966.  
  967.     RLB <ILBM file name> [<x offset %> <y offset %>]
  968.            Load an IFF graphic file (typically a brush file) into a video
  969.            buffer for the time interval specified by the start and stop
  970.            time.  When this directive appears, JACOsub assumes that the
  971.            remainder of the line is information about the file, NOT title
  972.            text.  The file name must follow the directive string.  The
  973.            position to display the image, specified as percent of screen
  974.            width and height from the center, can be specified in the next
  975.            two fields.  These position coordinates default to 0 0 if they
  976.            are omitted, which results in the picture being centered on the
  977.            screen.  The picture may be positioned to extend beyond the
  978.            display edge.
  979.  
  980.            Any IFF graphic picture or brush may be specified.  As many as
  981.            40 images may be loaded onto a single screen.  This enables you
  982.            to create several small brushes and display them all at once, in
  983.            different areas of the screen.
  984.  
  985.            CAVEATS (READ CAREFULLY!):
  986.            1.  You need at least AmigaDOS 2.0 to use this directive.  Under
  987.                1.3 and below, this directive is ignored unless you have a
  988.                1.3-compatible version of iffparse.library in your libs:
  989.                directory.
  990.            2.  If a file is too big to fit in memory, the file will simply
  991.                not load, and the program will beep to alert you.
  992.            3.  If the graphic file contains more bitplanes than the JACOsub
  993.                video buffers, the EXTRA BITPLANES WILL BE IGNORED.  You may
  994.                change the number of JACOsub's bitplanes in the
  995.                Playing / video Config menu.
  996.                If you have JACOsub set for a 4-color (2-bitplane) screen,
  997.                and you try to load in a 16-color (4-bitplane) picture, you
  998.                will lose 2 biplanes of information, and the picture will
  999.                look strange when it appears.
  1000.            4.  All pictures are treated as brushes.  Therefore, your
  1001.                picture, once loaded, will use JACOsub's color palette.  THE
  1002.                PICTURE'S OWN COLOR PALETTE WILL BE IGNORED.  Create your
  1003.                graphics using the SAME palette you use with JACOsub or the
  1004.                picture will look strange when it appears.  If you want to
  1005.                load a picture with its own colors, use the RLG directive
  1006.                (but then you won't be able to display text on top of it).
  1007.            5.  JACOsub attempts to load graphic files as they are needed.
  1008.                This can cause a slight video switch delay if a time event
  1009.                occurs while a file is loading, even though the graphic
  1010.                loading routines do check the clock frequently.  Keep your
  1011.                images on a fast hard disk, or better yet, in RAM:.  If you
  1012.                do not have sufficient memory, then do not use this
  1013.                directive!
  1014.  
  1015.     RLG <ILBM file name>
  1016.            Load an IFF graphic file into its own screen, with its own
  1017.            resolution and colors.  This screen will temporarily replace
  1018.            one of the video buffers.  As with RLB, JACOsub assumes that the
  1019.            text following the RLG directive contains the file name to load.
  1020.            JACOsub will attempt to center the picture on your screen.
  1021.  
  1022.            The RLB caveats 1, 2, and 5 above apply here also, and the RLG
  1023.            directive has some additional considerations:
  1024.  
  1025.            1.  You cannot display text on top of a picture loaded with
  1026.                the RLG directive.  Use the RLB directive for this.
  1027.            2.  The time ranges associated with a graphic screen should NOT
  1028.                overlap any other time ranges.  If they do, the start time
  1029.                for the graphic has priority over any unrealized end times.
  1030.            3.  The RLG directive can tax your memory even more severely
  1031.                than the RLB directive, especially if you load a pictures
  1032.                like hi-res HAM images to substitute every video buffer.
  1033.            4.  We observe difficulty loading Extra-Halfbrite pictures.
  1034.                Try it for yourself.  HAM and AGA images seem to work OK.
  1035.  
  1036.     RDB <LeftEdge> <TopEdge> <RightEdge> <BottomEdge>
  1037.            Draw a solid rectangle in the current text color with diagonal
  1038.            corners at the coordinates specified.  Coordinate units are
  1039.            percentages of the display width and height.  This is useful
  1040.            for making video letterbox margins really black.  To make the
  1041.            rectangle appear behind text, be sure it occurs in the script
  1042.            physically before the text, with a start time less than or equal
  1043.            to the text start time.
  1044.  
  1045.     RX <ARexx script name>
  1046.            Execute the ARexx script name that follows the RX directive.
  1047.            You should not specify other directives on the same line.  Only
  1048.            one RX directive may be specified per time event -- that is, if
  1049.            you have several lines all sharing the same start time, no more
  1050.            than one of them may contain an RX directive.  If more than one
  1051.            RX directive is specified for a given start time, the one that
  1052.            occurs latest in the script will be used.  The end time for the
  1053.            line is ignored, but should be larger than the start time to
  1054.            avoid a compiler warning.  Try to make the end time equal to the
  1055.            next nearest start time to avoid creating unnecessary video
  1056.            frames.
  1057.  
  1058. Default directives
  1059. ------------------
  1060.  
  1061. Because all of the above directives are optional, there is one other set of
  1062. directives that may be used when you do not wish to specify any:
  1063.  
  1064.     D or D0   Default.  To be used if no other directives are used.  You
  1065.            don't even need this directive at all, if your text begins with
  1066.            a non-alphabetic character (such as a {comment}, number, etc.).
  1067.  
  1068.            Specifying D (or nothing) will use the program's default
  1069.            settings.  The default directive for JACOsub is normally
  1070.  
  1071.            HL1HR99VH100VT16VB16JCJBFW1E0F0FDFB1FO0:2FSSE0SNCF3CB0CP0CS0:0:2
  1072.  
  1073.            which you can change in the file JACOsub.Config, or with a #D
  1074.            command at the top of your script.  Confused?  Here they are
  1075.            spaced out:
  1076.  
  1077.            HL1 HR99 VH100 VT16 VB16 JC JBF W1 E0
  1078.            F0 FD FB1 FO0:2 FSSE0 SN CF3 CB0 CP0 CS0:0:2
  1079.  
  1080.            The R directives and the Genlock directives should NEVER be
  1081.            specified globally, nor in JACOsub.Config.
  1082.  
  1083.     Dn     The directives D1 - D30 may be defined with the commands
  1084.            #D1 - #D30.  You can use these "default" directives as shorthand
  1085.            for more complex directives that you may need in many places.
  1086.            If you put two D directives in the same directive string, the
  1087.            latest one will be used, and any previous directives ignored.
  1088.  
  1089.    [name]  A name enclosed in square brackets may be substituted for any
  1090.            of the D directives.  You must have previously defined this
  1091.            name when you defined the D directive.
  1092.  
  1093. Other directives may be appended to a D directive to modify the behavior
  1094. of that D directive.  For example, if you defined a directive to use font
  1095. 0 and color 1, and decided to name it "credits" then you would say:
  1096.  
  1097.    #D2 F0CF1 credits
  1098.  
  1099. Then, if you wanted to use the D2 (or "credits") directive with font 3
  1100. instead of font 0, you could modify the directive either of the following
  1101. two ways:
  1102.  
  1103.    0:00:12.01 0:00:19.20 D2F3        Leia performed Akira's voice.
  1104. or 0:00:12.01 0:00:19.20 [Credits]F3 Leia performed Akira's voice.
  1105.  
  1106. You can spell the directive name using uppercase or lowercase characters.
  1107.  
  1108. If a directive string contains conflicting information, the information
  1109. occurring last will be used.  For example, VTD will cause VT to be ignored
  1110. in favor of the default.  In the directive CF10JLCF3, CF10 will be ignored
  1111. in favor of CF3.  Naturally, any directive beginning with D is unaffected
  1112. by the D.  In the long default directive above, you can see VT16VB16.  This
  1113. serves to set the top-of-screen offset to 16 for later, and then sets the
  1114. default vertical positioning at 16 pixels from the bottom of the viewport.
  1115.  
  1116. Time track
  1117. ----------
  1118.  
  1119.     Tx     Designate this line as belonging to track x, where x is any of
  1120.            the characters 0-9, A-F (case insensitive), or punctuation.
  1121.            This directive is ignored when compiling and playing scripts.
  1122.            All titles default to T0 if no track is specified.
  1123.  
  1124. The purpose of tracks is to let you assign unique designations to specific
  1125. title sequences interwoven with others in your script so that you can time
  1126. them separately.
  1127.  
  1128. For example, suppose you need to subtitle two people talking simultaneously
  1129. with music lyrics in the background.  This requires three independent
  1130. timing sequences.  There are two ways to do this:
  1131.  
  1132. 1.  Separate blocks of titles.  Without using the T directive, you must
  1133.     arrange each sequence as a separate block of titles (remember, JACOsub
  1134.     doesn't care about order of the titles in your script file -- it will
  1135.     sort everything out according to start and stop times).
  1136.  
  1137. 2.  One block of titles containing designated time tracks.  You can weave
  1138.     all the titles together as one long sequence, and designate separate
  1139.     tracks with the T directive so that the timing procedure can figure out
  1140.     which titles must be timed, and which must be skipped.
  1141.  
  1142. TRACKS WILL BE IGNORED IN ALL DEFAULT OR USER-DEFINED DIRECTIVES.
  1143. Furthermore, as far as JACOsub is concerned, trackes are not treated
  1144. internally as true directives at all.  Their only use is to flag lines for
  1145. the program's timing functions.
  1146.  
  1147.  
  1148. 5.  SAMPLE LINES
  1149. ================
  1150.  
  1151. These 4 lines all have the same effect.  Note that any spaces after the
  1152. directive and the first space after comments are ignored.
  1153.  
  1154. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru} It's alive!
  1155. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru}It's alive!
  1156. 0:00:10.11 0:00:12.00 D  It's alive!{line doesn't start with a comment}
  1157. 0:00:10.11 0:00:12.00    {fudo-ikiteru} It's alive!{starts with a comment}
  1158. 0:00:10.11 0:00:12.00 [default] {fudo-ikiteru} It's alive!\
  1159.                       {this assumes the D directive was named to "default"}
  1160.  
  1161. If you want leading/trailing spaces, all of these lines will do the same
  1162. thing (put two spaces in front of and after the text):
  1163.  
  1164. 0:00:10.11 0:00:12.00 D  ~~{fudo-ikiteru} It's alive! ~
  1165. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru}~~It's alive!~~
  1166. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru} ~~It's alive!~~
  1167. 0:00:10.11 0:00:12.00 D ~ It's alive!~~
  1168. 0:00:10.11 0:00:12.00 ~~{fudo-ikiteru} It's alive! ~
  1169. 0:00:10.11 0:00:12.00  {fudo-ikiteru}~ It's alive!~~
  1170. 0:00:10.11 0:00:12.00  {fudo-ikiteru} ~~It's alive!~~
  1171. 0:00:10.11 0:00:12.00  {fudo-ikiteru}   It's alive!~~
  1172.  
  1173. THE FOLLOWING LINE IS BAD.  It needs either a directive after the timing
  1174. numbers, or a comment to indicate that subtitle text follows the timing
  1175. numbers.  Any alphabet character (A-Z, a-z) following the timing numbers
  1176. MUST be part of a directive.
  1177.  
  1178. 0:00:10.11 0:00:12.00  It's alive!
  1179.  
  1180. For the next line, use color 1 for the font face color, start the
  1181. subtitle at the top of the screen and leave the other defaults alone,
  1182. and cause one word to be displayed in italics:
  1183.  
  1184. 0:02:23.23 0:02:25.01 cf1vt {thug1-nani} Whaddaya \Imean\N, ``please?''
  1185.  
  1186. Note:  Normal quotation marks ("like this") may be used, but using a
  1187. double grave and a double apostrophe, as in the line above, looks more
  1188. professional on the screen.  Just make sure that the grave looks like an
  1189. upside-down apostrophe in your font, and that both characters occupy a
  1190. narrow space.  The JACOsub fonts are designed this way.
  1191.  
  1192. Additional note (THIS IS ONE OF THE BIG FEATURES OF JACOsub):
  1193. Timings may overlap!  The software will handle overlapping text displays
  1194. properly, but you must be sure to position your subtitles so that these
  1195. separate text events do not physically overlap on the screen.  You can
  1196. arrange timed lines in any order you want, separate overlapped events
  1197. into groups, or whatever.  The program will handle it.
  1198.  
  1199.  
  1200. 6.  CREDITS
  1201. ===========
  1202.  
  1203. The original JACOsub format was dreamed up by Alex Matulich and Daric
  1204. Koslowski, before any code was ever written for JACOsub.  Yes, this was the
  1205. second step!  (The first was to create the fonts.)  Beta testers and users
  1206. have been very helpful in expanding and improving the specification into
  1207. what it is today.  User feedback has played a large role in the development
  1208. of the software and the script format.  The entire JACOsub project has been
  1209. largely user-driven.
  1210.  
  1211. End of JScripts.doc.
  1212.